<?php
	include 'connectDB.php';
?>
	<html>
		</head>
		<link rel = "stylesheet" type = "text/css" href = "styles/mainStyle.css">
			<title></title>
		</head>
		<body>
			<div id='main'>
				<div id='top'>
				</div>
				<div id='buttons'>
				<a href='index.php'><div id="logo">Welcome!</div></a>
					<ul id='ulTop'>
					<?php
						if (isset($_SESSION['logged']))
						{
							echo"<li class='topButtons' id='profileButton'>Profile Settings</li>";
							echo"<a href='buyAds.php'><li class='topButtons' id='buyAds'>Buy Ads</li></a>";
							echo"<a href='sellAds.php'><li class='topButtons' id='sellAds'>Sell Ads</li></a>";
							echo"<a href='contacts.php'><li class='topButtons'>Contacts</li></a>";
						}
						else
						{
							echo"
							<a href='index.php'><li class='topButtons'>Home</li></a>
							<a href='login.php'><li class='topButtons'>Login</li></a>
							<a href='register.php'><li class='topButtons'>Register</li></a>
							<a href='contacts.php'><li class='topButtons'>Contacts</li></a>";
						}
					?>
					</ul>
				</div>
				<div id='searchBoxIndexEdition'>
						<input type='text'id='searchField'>
						<button id='searchButton'>Search</button>
					</div>
				<div id='body'>
						<div id='contacts'>
							<h1>Contacts:</h1>
							phone:08....<br>
							e-mail:name@host
						</div>
				</div>
			</div>
		</body>
	</html>